package test2;

public class Estimator {
    public static void main(String[] args) {


        double array[] = {9,89,9,88,9,99,9,12,9,69,9,76,8,97};
        double array1[] = {89,56,78,90,100,77,56,45,36,79,98};
        ComputerAverage computerAverage = new Gymnastics();
        double result = computerAverage.average(array);
        System.out.println("%n");
        System.out.printf("体操选手最后得分：%5.3f\n",result);
       ComputerAverage computerAverage1 = new School();
       double sumber = computerAverage1.average(array1);
       System.out.println("%n");
       System.out.printf("班级考试平均分数：%-5.2f",sumber);

    }
}